<?php
class Upload_pic_model extends CI_Model {

	function __construct()
    {
        parent::__construct();
    }
   /**
    * 获取相关上传图片
    * @param $target_id
    * @param $target_type
    */
    function find_pics($target_id, $target_type) {
    	$this->db->where('target_id', $target_id);
    	$this->db->where('target_type', $target_type);
		return $this->db->get('upload_pics')->result_array();
    }
}